home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 1996 May / Software of the Month Club 1996 May.iso / mac / ISO9660 / ZIPFILES / BMPWIZ.ZIP / SPHERE1.BAS < prev    next >
Unknown  |  1994-02-07  |  1.1 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert GW-BASIC (document/gwBasic) ext Supported
66% dexvert GFA-BASIC Atari (other/gfaBASICAtari) ext Supported
1% dexvert Amiga BASIC Protected File (other/amigaBASICProtectedFile) ext Unsupported
1% dexvert BAS VBDOS Pro 1.0 Source (other/basVBDOSPro10Source) ext Unsupported
1% dexvert Visual Basic Tokenized Source (other/visualBasicTokenizedSource) ext Unsupported
1% dexvert ZBASIC (other/zbasic) ext Unsupported
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 84 04 00 00 0d 0a 27 20 | 53 70 68 65 72 65 31 20 |......' |Sphere1 |
|00000010| 28 52 61 69 6e 29 2e 0d | 0a 20 0d 0a 27 20 49 6e |(Rain)..|. ..' In|
|00000020| 70 75 74 3a 09 31 2d 34 | 2d 38 2d 32 34 20 62 69 |put:.1-4|-8-24 bi|
|00000030| 74 0d 0a 27 20 4f 75 74 | 70 75 74 3a 09 69 64 65 |t..' Out|put:.ide|
|00000040| 6d 0d 0a 0d 0a 27 20 41 | 75 74 68 6f 72 3a 09 41 |m....' A|uthor:.A|
|00000050| 6e 64 72 65 61 20 42 65 | 6e 6f 6e 69 09 09 09 20 |ndrea Be|noni... |
|00000060| 72 65 76 3a 09 31 2e 32 | 0d 0a 0d 0a 0d 0a 73 74 |rev:.1.2|......st|
|00000070| 72 69 6e 67 20 20 20 20 | 09 69 6e 70 46 69 6c 65 |ring |.inpFile|
|00000080| 2c 6f 75 74 46 69 6c 65 | 0d 0a 44 65 76 43 6f 6e |,outFile|..DevCon|
|00000090| 09 49 62 6d 70 2c 4f 62 | 6d 70 0d 0a 52 47 42 09 |.Ibmp,Ob|mp..RGB.|
|000000a0| 70 69 78 0d 0a 66 6c 6f | 61 74 20 20 09 72 2c 61 |pix..flo|at .r,a|
|000000b0| 2c 78 2c 79 2c 70 65 72 | 2c 72 73 2c 72 61 64 2c |,x,y,per|,rs,rad,|
|000000c0| 69 2c 78 72 2c 79 72 2c | 4c 69 0d 0a 0d 0a 69 6e |i,xr,yr,|Li....in|
|000000d0| 70 46 69 6c 65 3d 22 54 | 65 73 74 69 2e 62 6d 70 |pFile="T|esti.bmp|
|000000e0| 22 09 09 09 27 20 69 6e | 70 75 74 20 66 69 6c 65 |"...' in|put file|
|000000f0| 0d 0a 6f 75 74 46 69 6c | 65 3d 22 54 65 73 74 6f |..outFil|e="Testo|
|00000100| 2e 62 6d 70 22 09 09 09 | 27 20 6f 75 74 70 75 74 |.bmp"...|' output|
|00000110| 20 66 69 6c 65 0d 0a 0d | 0a 49 62 6d 70 3d 4c 6f | file...|.Ibmp=Lo|
|00000120| 61 64 49 6d 61 67 65 28 | 69 6e 70 46 69 6c 65 29 |adImage(|inpFile)|
|00000130| 0d 0a 4f 62 6d 70 3d 43 | 72 65 61 74 65 49 6d 61 |..Obmp=C|reateIma|
|00000140| 67 65 28 49 62 6d 70 2e | 57 69 64 74 68 2c 49 62 |ge(Ibmp.|Width,Ib|
|00000150| 6d 70 2e 48 65 69 67 68 | 74 2c 32 34 29 0d 0a 0d |mp.Heigh|t,24)...|
|00000160| 0a 66 6f 72 20 79 3d 30 | 20 74 6f 20 49 62 6d 70 |.for y=0| to Ibmp|
|00000170| 2e 48 65 69 67 68 74 0d | 0a 20 20 20 66 6f 72 20 |.Height.|. for |
|00000180| 78 3d 30 20 74 6f 20 49 | 62 6d 70 2e 57 69 64 74 |x=0 to I|bmp.Widt|
|00000190| 68 0d 0a 20 20 20 20 20 | 20 20 70 69 78 3d 47 65 |h.. | pix=Ge|
|000001a0| 74 50 69 78 65 6c 28 49 | 62 6d 70 2c 78 2c 79 29 |tPixel(I|bmp,x,y)|
|000001b0| 0d 0a 20 20 20 20 20 20 | 20 53 65 74 50 69 78 65 |.. | SetPixe|
|000001c0| 6c 28 4f 62 6d 70 2c 78 | 2c 79 2c 70 69 78 29 0d |l(Obmp,x|,y,pix).|
|000001d0| 0a 20 20 20 6e 65 78 74 | 20 78 0d 0a 20 20 20 44 |. next| x.. D|
|000001e0| 73 70 57 68 69 6c 65 28 | 22 43 72 65 61 74 69 6e |spWhile(|"Creatin|
|000001f0| 67 20 32 34 20 62 69 74 | 20 69 6d 61 67 65 22 2c |g 24 bit| image",|
|00000200| 31 30 30 2f 49 62 6d 70 | 2e 48 65 69 67 68 74 2a |100/Ibmp|.Height*|
|00000210| 79 29 0d 0a 6e 65 78 74 | 20 79 0d 0a 0d 0a 72 61 |y)..next| y....ra|
|00000220| 64 3d 36 2e 32 38 2f 35 | 30 0d 0a 0d 0a 66 6f 72 |d=6.28/5|0....for|
|00000230| 20 69 3d 31 20 74 6f 20 | 31 30 30 0d 0a 20 20 78 | i=1 to |100.. x|
|00000240| 72 3d 52 61 6e 64 28 49 | 62 6d 70 2e 57 69 64 74 |r=Rand(I|bmp.Widt|
|00000250| 68 2d 33 32 29 2b 31 36 | 0d 0a 20 20 79 72 3d 52 |h-32)+16|.. yr=R|
|00000260| 61 6e 64 28 49 62 6d 70 | 2e 48 65 69 67 68 74 2d |and(Ibmp|.Height-|
|00000270| 33 32 29 2b 31 36 0d 0a | 20 20 70 65 72 3d 72 61 |32)+16..| per=ra|
|00000280| 6e 64 28 31 36 29 2b 31 | 36 20 20 0d 0a 20 20 44 |nd(16)+1|6 .. D|
|00000290| 73 70 57 68 69 6c 65 28 | 22 52 61 69 6e 22 2c 69 |spWhile(|"Rain",i|
|000002a0| 29 0d 0a 20 20 46 6f 72 | 20 72 3d 30 20 74 6f 20 |).. For| r=0 to |
|000002b0| 70 65 72 0d 0a 20 20 20 | 20 20 72 73 3d 73 69 6e |per.. | rs=sin|
|000002c0| 28 31 2e 35 37 2f 70 65 | 72 2a 72 29 2a 70 65 72 |(1.57/pe|r*r)*per|
|000002d0| 0d 0a 20 20 20 20 20 4c | 69 3d 31 2e 33 2d 28 2e |.. L|i=1.3-(.|
|000002e0| 36 2f 70 65 72 2a 72 29 | 0d 0a 20 20 20 20 20 46 |6/per*r)|.. F|
|000002f0| 6f 72 20 61 3d 30 20 74 | 6f 20 35 30 0d 0a 20 20 |or a=0 t|o 50.. |
|00000300| 20 20 20 20 20 20 78 3d | 73 69 6e 28 72 61 64 2a | x=|sin(rad*|
|00000310| 61 29 0d 0a 20 20 20 20 | 20 20 20 20 79 3d 63 6f |a).. | y=co|
|00000320| 73 28 72 61 64 2a 61 29 | 0d 0a 20 20 20 20 20 20 |s(rad*a)|.. |
|00000330| 20 20 70 69 78 3d 47 65 | 74 50 69 78 65 6c 20 28 | pix=Ge|tPixel (|
|00000340| 4f 62 6d 70 2c 78 2a 72 | 2b 78 72 2c 79 2a 72 2b |Obmp,x*r|+xr,y*r+|
|00000350| 79 72 29 0d 0a 20 20 20 | 20 20 20 20 20 70 69 78 |yr).. | pix|
|00000360| 2e 52 65 64 3d 6d 69 6e | 28 32 35 35 2c 70 69 78 |.Red=min|(255,pix|
|00000370| 2e 52 65 64 2a 4c 69 29 | 0d 0a 20 20 20 20 20 20 |.Red*Li)|.. |
|00000380| 20 20 70 69 78 2e 47 72 | 65 65 6e 3d 6d 69 6e 28 | pix.Gr|een=min(|
|00000390| 32 35 35 2c 70 69 78 2e | 47 72 65 65 6e 2a 4c 69 |255,pix.|Green*Li|
|000003a0| 29 0d 0a 20 20 20 20 20 | 20 20 20 70 69 78 2e 42 |).. | pix.B|
|000003b0| 6c 75 65 3d 6d 69 6e 28 | 32 35 35 2c 70 69 78 2e |lue=min(|255,pix.|
|000003c0| 42 6c 75 65 2a 28 4c 69 | 2b 2e 32 29 29 0d 0a 20 |Blue*(Li|+.2)).. |
|000003d0| 20 20 20 20 20 20 20 53 | 65 74 50 69 78 65 6c 20 | S|etPixel |
|000003e0| 28 4f 62 6d 70 2c 78 2a | 72 73 2f 34 2b 78 72 2c |(Obmp,x*|rs/4+xr,|
|000003f0| 79 2a 72 73 2f 34 2b 79 | 72 2c 70 69 78 29 0d 0a |y*rs/4+y|r,pix)..|
|00000400| 20 20 20 20 20 4e 65 78 | 74 20 61 0d 0a 20 20 20 | Nex|t a.. |
|00000410| 4e 65 78 74 20 72 0d 0a | 20 20 20 50 72 65 76 69 |Next r..| Previ|
|00000420| 65 77 28 4f 62 6d 70 2c | 22 49 6d 6d 61 67 69 6e |ew(Obmp,|"Immagin|
|00000430| 65 22 2c 32 2c 35 29 0d | 0a 4e 65 78 74 20 69 0d |e",2,5).|.Next i.|
|00000440| 0a 0d 0a 0d 0a 50 72 65 | 76 69 65 77 28 49 62 6d |.....Pre|view(Ibm|
|00000450| 70 2c 22 49 6d 6d 61 67 | 69 6e 65 22 2c 32 2c 35 |p,"Immag|ine",2,5|
|00000460| 29 0d 0a 53 61 76 65 49 | 6d 61 67 65 28 49 62 6d |)..SaveI|mage(Ibm|
|00000470| 70 2c 6f 75 74 46 69 6c | 65 29 0d 0a 44 73 70 4d |p,outFil|e)..DspM|
|00000480| 65 73 28 22 4f 6b 22 29 | |es("Ok")| |
+--------+-------------------------+-------------------------+--------+--------+